/*
 * @Author: chaoxiaoshu-mx leukotrichia@163.com
 * @Date: 2023-02-09 16:06:25
 * @LastEditors: chaoxiaoshu-mx leukotrichia@163.com
 * @LastEditTime: 2023-02-10 17:20:47
 * @FilePath: \node-server\app.js
 * @Description:
 */

var path = require("path");
// 导入express
var express = require("express")
// 创建web服务器
var app = express()

// 路由
var indexRouter = require('./routes/index');
app.use("/", indexRouter);

// 托管静态文件
app.use("/public", express.static(path.join(__dirname, 'public')));

module.exports = app;
